package edu.scau.mis.system.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.Date;

@Data
@Builder
@ApiModel("令牌返回信息")
public class TokenVo {

    @ApiModelProperty(value = "访问令牌", required = true)
    private String accessToken;

    @ApiModelProperty(value = "刷新令牌", required = true)
    private String refreshToken;

    @ApiModelProperty(value = "过期时间(yyyy/MM/dd HH:mm:ss格式)", required = true)
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private Date expires;


}
